import request from '@/utils/request'
//+++++++++++++朋友圈sop+++++++++++
// 获取提醒设置
export function getAlertlist() {
  return request({
    url: '/scrm-api/console/market/sop/moment/get-alert-rule',
    method: 'get'
  })
}
// 设置提醒设置
export function setAlertlist(data: any) {
  return request({
    url: '/scrm-api/console/market/sop/moment/set-alert-rule',
    method: 'post',
    data
  })
}
// 获取sop列表
export function getsopList(data: any) {
  return request({
    url: '/scrm-api/console/market/sop/moment/list',
    method: 'post',
    data
  })
}
// 改变状态
export function change(data: any) {
  return request({
    url: '/scrm-api/console/market/sop/moment/status',
    method: 'post',
    data
  })
}
// 删除
export function del(data: any) {
  return request({
    url: '/scrm-api/console/market/sop/moment/del',
    method: 'post',
    data
  })
}
// 高级设置
export function heightSet(data: any) {
  return request({
    url: '/scrm-api/console/market/sop/moment/set-advanced-setting',
    method: 'post',
    data
  })
}
// 获取高级设置
export function heightGet(data?: any) {
  return request({
    url: '/scrm-api/console/market/sop/moment/get-advanced-setting',
    method: 'get',
    data
  })
}
// 创建sop
export function createSop(data?: any) {
  return request({
    url: 'scrm-api/console/market/sop/moment/create',
    method: 'POST',
    data
  })
}
// 编辑sop
export function editSop(data?: any) {
  return request({
    url: '/scrm-api/console/market/sop/moment/update',
    method: 'POST',
    data
  })
}
// 编辑sop
export function geteDetailSop(data?: any) {
  return request({
    url: '/scrm-api/console/market/sop/moment/update',
    method: 'POST',
    data
  })
}
// 查看
export function getDetail(data?: any) {
  return request({
    url: '/scrm-api/console/market/sop/moment/detail',
    method: 'get',
    params: data
  })
}
// 员工执行列表
export function memberList(data?: any) {
  return request({
    url: '/scrm-api/console/market/sop/moment/job-detail',
    method: 'post',
    data
  })
}
// 同步联系人
export function asyncData(data?: any) {
  return request({
    url: '/scrm-api/console/work/contact/sync-follow-user',
    method: 'post',
    data
  })
}
// 编辑
export function getlist(data?: any) {
  return request({
    url: '/scrm-api/console/market/sop/moment/info',
    method: 'post',
    data
  })
}
// 提醒
export function alart(data?: any) {
  return request({
    url: '/scrm-api/console/market/sop/moment/work-user-job/alert',
    method: 'post',
    data
  })
}
// 员工任务详情
export function targetDetail(data: any) {
  return request({
    url: '/scrm-api/console/market/sop/moment/work-user-job/detail',
    method: 'get',
    params: data
  })
}
// 提交上传凭证
export function submitTarget(data: any) {
  return request({
    url: '/scrm-api/console/market/sop/moment/work-user-job/upload-voucher',
    method: 'post',
    data
  })
}
// 达标or不达标
export function pass(data: any) {
  return request({
    url: '/scrm-api/console/market/sop/moment/work-user-job/check',
    method: 'post',
    data
  })
}
